import requests from '@/utils/request'

// 获取有权限的品种
export const GetCalculateAuthVariety = () => {
  return requests({
    url: '/v1/calculate/formula/variety/',
    method: 'get'
  })
}

export const VareityFormulas = (ven) => {
  return  requests({
    url: '/v1/calculate/formula/varietyFormulaList/',
    method: 'get',
    params: { ven }
  })
}

// 某个公式重新计算
export const ReCalculateFormula = (data) => {
  return  requests({
    url: '/v1/calculate/formula/reCalculate/',
    method: 'post',
    data,
  }) 
}
